//
//  UIDefine.h
//  MyFamework
//
//  Created by carlos on 13-4-17.
//  Copyright (c) 2013年 carlos. All rights reserved.
//

#ifndef MyFamework_UIDefine_h
#define MyFamework_UIDefine_h


// 屏幕大小
#define kFScreenFrame [UIScreen mainScreen].applicationFrame
#define kFCurrentHeight(orientation) UIInterfaceOrientationIsPortrait(orientation)?kFBaseWidth:kFBaseHeight

#define kFCurrentWidth(orientation) UIInterfaceOrientationIsPortrait(orientation)?kFBaseHeight:kFBaseWidth


//获取整个屏幕的frame
#define kFrameAll CGRectMake(0,0,k_rect_base_width,k_rect_base_height)
//获取没有状态栏和导航栏的整个屏幕的frame
#define kFrameAllNoStatueNoNav CGRectMake(0,0,kFBaseWidth,kFBaseHeightNoStatusNoNav)
//获取没有状态条的整个屏幕的frame
#define kFrameAllNoStatus CGRectMake(0,0,kFBaseWidth,kFBaseHeightNoStatus)
//获取整个屏幕的frame，但x自定义
#define kFrameWithX(frame,x) CGRectMake(x,frame.origin.y,frame.size.width,frame.size.height)
//获取frame，但y自定义
#define kFrameWithY(frame,y) CGRectMake(frame.origin.x,y,frame.size.width,frame.size.height)


#endif
